home *** CD-ROM | disk | FTP | other *** search
/ InfoMagic Internet Tools 1993 July / Internet Tools.iso / RockRidge / mail / sendmail / sendmail-5.65c+IDA-1.4.4.1 / cf / m4 / rule0.m4 < prev    next >
Encoding:
Text File  |  1989-01-03  |  1.4 KB  |  50 lines

  1. divert(10)
  2. #
  3. #  Sendmail
  4. #  Copyright (c) 1983  Eric P. Allman
  5. #  Berkeley, California
  6. #
  7. #  Copyright (c) 1983 Regents of the University of California.
  8. #  All rights reserved.  The Berkeley software License Agreement
  9. #  specifies the terms and conditions for redistribution.
  10. #
  11. #    @(#)rule0.m4    1.10 (Berkeley) 1/3/89
  12. #
  13. divert(0)
  14. ############################################################
  15. ############################################################
  16. #####
  17. #####        RULESET ZERO PREAMBLE
  18. #####
  19. #####    The beginning of ruleset zero is constant through all
  20. #####    configurations.
  21. #####
  22. ############################################################
  23. ############################################################
  24.  
  25. S0
  26.  
  27. # first make canonical
  28. R$*<$*>$*        $1$2$3                defocus
  29. R$+            $:$>3$1                make canonical
  30.  
  31. # handle special cases
  32. R$*<@[$+]>$*        $:$1<@$[[$2]$]>$3        numeric internet addr
  33. R$*<@[$+]>$*        $#tcp$@[$2]$:$1@[$2]$3        numeric internet spec
  34. R$+            $:$>6$1
  35. R$-<@$w>        $#local$:$1
  36. R@            $#error$:Invalid address    handle <> form
  37.  
  38. # canonicalize using the nameserver if not internal domain
  39. R$*<@$*.$~I>$*        $:$1<@$[$2.$3$]>$4
  40. R$*<@$->$*        $:$1<@$[$2$]>$3
  41. R$*<@$->$*        $:$1<@$2.$D>$3            if nameserver fails
  42.  
  43. # now delete the local info
  44. R<@$w>:$*        $@$>0$1                @here:... -> ...
  45. R$*<@$w>        $@$>0$1                ...@here -> ...
  46.  
  47. ##################################
  48. #  End of ruleset zero preamble  #
  49. ##################################
  50.